package com.ss.android.article.base.feature.detail2.article.a;

import android.view.View;

import com.ss.android.article.base.feature.detail.model.ArticleInfo.d;
import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.newmedia.util.AppUtil;

import org.json.JSONException;
import org.json.JSONObject;

final class f implements View.OnClickListener {
    private final NewDetailPageExtra c;
    private final int a;
    private final d b;

    f(NewDetailPageExtra arg1, int arg2, d arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;
    }

    public final void onClick(View arg10) {
        long v6 = 0;
        JSONObject v8 = new JSONObject();
        try {
            v8.put("item_id", this.c.mArticleInfo.groupItemId);
            v8.put("position", this.a);
            v8.put("keyword", this.b.a);
        } catch (JSONException v0) {
            v0.printStackTrace();
        }

        if (this.c.mArticleInfo == null || this.c.mArticleInfo.ae != 101) {
            NewDetailPageExtra v0_1 = this.c;
            String v3 = "concern_words_click";
            if (v0_1.mArticleInfo != null && v0_1.mArticleInfo.itemId != v6) {
                MobClickCombiner.onEvent(v0_1.mActivity, "detail", v3, v0_1.mArticleInfo.itemId, v0_1.k, v8);
            }
        } else {
            MobClickCombiner.onEvent(this.c.mActivity, "talk_detail", "concern_words_click", this.c.mArticleInfo.itemId, v6, v8);
        }

        AppUtil.b(this.c.mActivity, this.b.b);
    }
}

